var adminContent, adminViewport;

/*
** This function circumvents Django's POST requirement for generic object
** deletion, so that links can be used to trigger this action.
*/
function deleteObject(targetURL) {
    var answer = confirm("Are you sure you want to delete this object?");
    if(answer) {
        form = document.getElementById('adminForm');
        form.action = targetURL;
        form.submit();
    }
}

/* 
** This is the intialization function for the administrative interface. It's
** responsible for setting up the menu that allows navigation throughout a
** labyrinth.
*/ 
$(document).ready(function(){
    // Call this page's initialization method since we've finished our setup.
    if(pageInit)
        pageInit();
});